package com.rq.viewtestapplication;

import android.content.Context;
import android.graphics.Point;
import android.view.WindowManager;

class AppUtil {
    public static float getWidth(Context context) {
        WindowManager wm= (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
        Point point=new Point();
         wm.getDefaultDisplay().getSize(point);
        return point.x;
    }

    public static float getHeight(Context context) {
        WindowManager wm= (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
        Point point=new Point();
        wm.getDefaultDisplay().getSize(point);
        return point.y;
    }
}
